﻿/**
  *  twiModalWindow CSS 1.1.0
  *  1.1.0:集成了TwiSkin八大未来主题
  */
.twi-md-btn {
	border: none;
	padding: 0.6em 1.2em;	
	color: #fff;
	font-family: 'Lato', Calibri, Arial, sans-serif;
	font-size: 1em;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	display: inline-block;
	margin: 3px 2px;
	border-radius: 2px;
}

/**
  *TwiSkin颜色搭配
  */

/*1、turquoise:绿松石、土耳其石      #16A085   #1ABC9C*/
.twi-md-btn-turquoise{
    background: #16A085;
}
.twi-md-bg-turquoise{
	background: #1ABC9C;
}
.twi-md-btn-turquoise:hover{
	background: #108770;
}
.twi-md-overlay-turquoise{
    background: rgba(26,188,156,0.8);
}
/*2、sunorange:向日橙、土豪金        #F39C12   #F1C40F*/
.twi-md-btn-sunorange{
    background: #F39C12;
}
.twi-md-bg-sunorange{
	background: #F1C40F;
}
.twi-md-btn-sunorange:hover{
	background: #dd8d0f;
}
.twi-md-overlay-sunorange{
    background: rgba(241,196,15,0.8);
}
/*3、dreamblue:梦之蓝、海之蓝   #2980B9   #3498DB*/
.twi-md-btn-blue,
.twi-md-btn-dreamblue{
    background: #2980B9;
}
.twi-md-bg-blue,
.twi-md-bg-dreamblue {
    background: #3498DB;
} 
.twi-md-btn-blue:hover,
.twi-md-btn-dream:hover {
	background: #216b9c;
}
.twi-md-overlay-blue,
.twi-md-overlay-dreamblue {
    background: rgba(52,152,219,0.8); 
}
/*4、amethyst:紫水晶                #8E44AD   #9B59B6*/
.twi-md-btn-amethyst{
    background: #8E44AD;
}
.twi-md-bg-amethyst{
	background: #9B59B6;
}
.twi-md-btn-amethyst:hover{
	background: #7b329a;
}
.twi-md-overlay-amethyst{
    background: rgba(155,89,182,0.8);
}
/*5、emerland:祖母绿、绿宝石         #27AE60   #2ECC71*/
.twi-md-btn-emerland{
    background: #27AE60;
}
.twi-md-bg-emerland{
	background: #2ECC71;
}
.twi-md-btn-emerland:hover{
	background: #1c9750;
}
.twi-md-overlay-emerland{
    background: rgba(46,204,113,0.8);
}
/*6、rainright:黑雨夜               #2C3E50   #34495E*/
.twi-md-btn-rainright{
    background: #2C3E50;
}
.twi-md-bg-rainright{
	background: #34495E;
}
.twi-md-btn-rainright:hover{
	background: #22303f;
}
.twi-md-overlay-rainright{
    background: rgba(52,73,94,0.8);
}
/*7、alizarin: 茜素红   #C0392B   #E74C3C */
.twi-md-btn-red,
.twi-md-btn-alizarin{
    background: #c0392b;
}
.twi-md-bg-red,
.twi-md-bg-alizarin {
	background: #e74c3c;
}
.twi-md-btn-red:hover,
.twi-md-btn-alizarin:hover{
	background: #A5281B;
}
.twi-md-overlay-red,
.twi-md-overlay-alizarin {
    background: rgba(231,76,60,0.8);
}
/*8、brown:古韵棕                   #D35400   #E67E22*/
.twi-md-btn-brown{
    background: #D35400;
}
.twi-md-bg-brown{
	background: #E67E22;
}
.twi-md-btn-brown:hover{
	background: #bb4e07;
}
.twi-md-overlay-brown{
    background: rgba(230,126,34,0.8);
}



.twi-md-modal {
    font-family: 'Microsoft YaHei';
	color: #fff;
	position: fixed;
	top: 50%;
	left: 50%;
	width: 50%;
	max-width: 630px;
	min-width: 320px;
	height: auto;
	z-index: 2000;
	visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-ms-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);
}

.twi-md-show {
	visibility: visible;
}

.twi-md-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	visibility: hidden;
	top: 0;
	left: 0;
	z-index: 1000;
	opacity: 0;
	/*background: rgba(143,27,15,0.8);*/
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}



.twi-md-show ~ .twi-md-overlay {
	opacity: 1;
	visibility: visible;
}

/* Content styles */
.twi-md-content {
	color: #fff;
	/*background: #3498db;*/
	position: relative;
	border-radius: 3px;
	margin: 0 auto;
}

.twi-md-content h3 {
	margin: 0;
	padding: 0.4em;
	text-align: center;
	font-size: 2.4em;
	font-weight: 300;
	opacity: 0.8;
	background: rgba(0,0,0,0.1);
	border-radius: 3px 3px 0 0;
}
.twi-md-content > div {
    font-size: 1.15em;
    font-weight: 300;
    margin: 0;
    padding: 15px 40px 30px;
}

.twi-md-content button {
    display: block;
    font-size: 0.8em;
    margin: 0 auto;
}
/* Individual modal styles with animations/transitions */

/* Effect 1: Fade in and scale up */
.twi-md-effect-1 .twi-md-content {
	-webkit-transform: scale(0.7);
	-moz-transform: scale(0.7);
	-ms-transform: scale(0.7);
	transform: scale(0.7);
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.twi-md-show.twi-md-effect-1 .twi-md-content {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}


/* Effect 2: Slide from the right */
.twi-md-effect-2 .twi-md-content {
	-webkit-transform: translateX(20%);
	-moz-transform: translateX(20%);
	-ms-transform: translateX(20%);
	transform: translateX(20%);
	opacity: 0;
	-webkit-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
	-moz-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
	transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
}

.twi-md-show.twi-md-effect-2 .twi-md-content {
	-webkit-transform: translateX(0);
	-moz-transform: translateX(0);
	-ms-transform: translateX(0);
	transform: translateX(0);
	opacity: 1;
}

/* Effect 3: Slide from the bottom */
.twi-md-effect-3 .twi-md-content {
	-webkit-transform: translateY(20%);
	-moz-transform: translateY(20%);
	-ms-transform: translateY(20%);
	transform: translateY(20%);
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.twi-md-show.twi-md-effect-3 .twi-md-content {
	-webkit-transform: translateY(0);
	-moz-transform: translateY(0);
	-ms-transform: translateY(0);
	transform: translateY(0);
	opacity: 1;
}

/* Effect 4: Newspaper */
.twi-md-effect-4 .twi-md-content {
	-webkit-transform: scale(0) rotate(720deg);
	-moz-transform: scale(0) rotate(720deg);
	-ms-transform: scale(0) rotate(720deg);
	transform: scale(0) rotate(720deg);
	opacity: 0;
}

.twi-md-show.twi-md-effect-4 ~ .twi-md-overlay,
.twi-md-effect-4 .twi-md-content {
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	transition: all 0.5s;
}

.twi-md-show.twi-md-effect-4 .twi-md-content {
	-webkit-transform: scale(1) rotate(0deg);
	-moz-transform: scale(1) rotate(0deg);
	-ms-transform: scale(1) rotate(0deg);
	transform: scale(1) rotate(0deg);
	opacity: 1;
}

/* Effect 5: fall */
.twi-md-effect-5.twi-md-modal {
	-webkit-perspective: 1300px;
	-moz-perspective: 1300px;
	perspective: 1300px;
}

.twi-md-effect-5 .twi-md-content {
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: translateZ(600px) rotateX(20deg); 
	-moz-transform: translateZ(600px) rotateX(20deg); 
	-ms-transform: translateZ(600px) rotateX(20deg); 
	transform: translateZ(600px) rotateX(20deg); 
	opacity: 0;
}

.twi-md-show.twi-md-effect-5 .twi-md-content {
	-webkit-transition: all 0.3s ease-in;
	-moz-transition: all 0.3s ease-in;
	transition: all 0.3s ease-in;
	-webkit-transform: translateZ(0px) rotateX(0deg);
	-moz-transform: translateZ(0px) rotateX(0deg);
	-ms-transform: translateZ(0px) rotateX(0deg);
	transform: translateZ(0px) rotateX(0deg); 
	opacity: 1;
}

/* Effect 6: side fall */
.twi-md-effect-6.twi-md-modal {
	-webkit-perspective: 1300px;
	-moz-perspective: 1300px;
	perspective: 1300px;
}

.twi-md-effect-6 .twi-md-content {
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: translate(30%) translateZ(600px) rotate(10deg); 
	-moz-transform: translate(30%) translateZ(600px) rotate(10deg);
	-ms-transform: translate(30%) translateZ(600px) rotate(10deg);
	transform: translate(30%) translateZ(600px) rotate(10deg); 
	opacity: 0;
}

.twi-md-show.twi-md-effect-6 .twi-md-content {
	-webkit-transition: all 0.3s ease-in;
	-moz-transition: all 0.3s ease-in;
	transition: all 0.3s ease-in;
	-webkit-transform: translate(0%) translateZ(0) rotate(0deg);
	-moz-transform: translate(0%) translateZ(0) rotate(0deg);
	-ms-transform: translate(0%) translateZ(0) rotate(0deg);
	transform: translate(0%) translateZ(0) rotate(0deg);
	opacity: 1;
}

/* Effect 7:  slide and stick to top */
.twi-md-effect-7{
	top: 0;
	-webkit-transform: translateX(-50%);
	-moz-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	transform: translateX(-50%);
}

.twi-md-effect-7 .twi-md-content {
	-webkit-transform: translateY(-200%);
	-moz-transform: translateY(-200%);
	-ms-transform: translateY(-200%);
	transform: translateY(-200%);
	-webkit-transition: all .3s;
	-moz-transition: all .3s;
	transition: all .3s;
	opacity: 0;
}

.twi-md-show.twi-md-effect-7 .twi-md-content {
	-webkit-transform: translateY(0%);
	-moz-transform: translateY(0%);
	-ms-transform: translateY(0%);
	transform: translateY(0%);
	border-radius: 0 0 3px 3px;
	opacity: 1;
}

/* Effect 8: 3D flip horizontal */
.twi-md-effect-8.twi-md-modal {
	-webkit-perspective: 1300px;
	-moz-perspective: 1300px;
	perspective: 1300px;
}

.twi-md-effect-8 .twi-md-content {
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: rotateY(-70deg);
	-moz-transform: rotateY(-70deg);
	-ms-transform: rotateY(-70deg);
	transform: rotateY(-70deg);
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
	opacity: 0;
}

.twi-md-show.twi-md-effect-8 .twi-md-content {
	-webkit-transform: rotateY(0deg);
	-moz-transform: rotateY(0deg);
	-ms-transform: rotateY(0deg);
	transform: rotateY(0deg);
	opacity: 1;
}

/* Effect 9: 3D flip vertical */
.twi-md-effect-9.twi-md-modal {
	-webkit-perspective: 1300px;
	-moz-perspective: 1300px;
	perspective: 1300px;
}

.twi-md-effect-9 .twi-md-content {
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: rotateX(-70deg);
	-moz-transform: rotateX(-70deg);
	-ms-transform: rotateX(-70deg);
	transform: rotateX(-70deg);
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
	opacity: 0;
}

.twi-md-show.twi-md-effect-9 .twi-md-content {
	-webkit-transform: rotateX(0deg);
	-moz-transform: rotateX(0deg);
	-ms-transform: rotateX(0deg);
	transform: rotateX(0deg);
	opacity: 1;
}

/* Effect 10: 3D sign */
.twi-md-effect-10.twi-md-modal {
	-webkit-perspective: 1300px;
	-moz-perspective: 1300px;
	perspective: 1300px;
}

.twi-md-effect-10 .twi-md-content {
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: rotateX(-60deg);
	-moz-transform: rotateX(-60deg);
	-ms-transform: rotateX(-60deg);
	transform: rotateX(-60deg);
	-webkit-transform-origin: 50% 0;
	-moz-transform-origin: 50% 0;
	transform-origin: 50% 0;
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.twi-md-show.twi-md-effect-10 .twi-md-content {
	-webkit-transform: rotateX(0deg);
	-moz-transform: rotateX(0deg);
	-ms-transform: rotateX(0deg);
	transform: rotateX(0deg);
	opacity: 1;
}

/* Effect 11: Super scaled */
.twi-md-effect-11 .twi-md-content {
	-webkit-transform: scale(2);
	-moz-transform: scale(2);
	-ms-transform: scale(2);
	transform: scale(2);
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.twi-md-show.twi-md-effect-11 .twi-md-content {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}

/* Effect 12:  Just me */
.twi-md-effect-12 .twi-md-content {
	-webkit-transform: scale(0.8);
	-moz-transform: scale(0.8);
	-ms-transform: scale(0.8);
	transform: scale(0.8);
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.twi-md-show.twi-md-effect-12 ~ .twi-md-overlay {
	background: #e74c3c;
} 

.twi-md-effect-12 .twi-md-content h3,
.twi-md-effect-12 .twi-md-content {
	background: transparent;
}

.twi-md-show.twi-md-effect-12 .twi-md-content {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}

/* Effect 13: 3D slit */
.twi-md-effect-13.twi-md-modal {
	-webkit-perspective: 1300px;
	-moz-perspective: 1300px;
	perspective: 1300px;
}

.twi-md-effect-13 .twi-md-content {
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: translateZ(-3000px) rotateY(90deg);
	-moz-transform: translateZ(-3000px) rotateY(90deg);
	-ms-transform: translateZ(-3000px) rotateY(90deg);
	transform: translateZ(-3000px) rotateY(90deg);
	opacity: 0;
}

.twi-md-show.twi-md-effect-13 .twi-md-content {
	-webkit-animation: slit .7s forwards ease-out;
	-moz-animation: slit .7s forwards ease-out;
	animation: slit .7s forwards ease-out;
}